Problem Note 47906: The target table might not update correctly when using the SCD Type 2 Loader transformation
When you use the SCD Type 2 Loader transformation, records from the source table might not be added to the target table. This incorrect behavior might occur when a non-unique business key is used. The problem occurs due to an incorrect incrementation of the date_begin variable.
In order to increment the date_begin variable appropriately, change the Automatic generated code to User Written. In addition, locate the following code:
/* Generate the from date expression */
%let etls_begdate = DATETIME();
Change the preceding code as follows:
/* Generate the from date expression */
%let etls_begdate = %sysfunc(DATETIME());
Starting with SAS® Data Integration Studio 4.5 %sysfunc(DATETIME()) is used by default.
Operating System and Release Information
SAS System | SAS Data Integration Studio | Windows Vista | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
Windows Vista for x64 | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
Microsoft® Windows® for x64 | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Datacenter Edition | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Enterprise Edition | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Standard Edition | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
Microsoft Windows Server 2003 for x64 | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
Microsoft Windows Server 2008 for x64 | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
Microsoft Windows XP Professional | 4.2 | 4.5 | 9.2 TS2M0 | 9.3 TS1M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2012-10-09 12:25:23 |
Date Created: | 2012-09-18 06:42:06 |